home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 21 / CU Amiga Magazine's Super CD-ROM 21 (1998)(EMAP Images)(GB)[!][issue 1998-04].iso / CUCD / Online / Filter / Install Filter < prev    next >
Encoding:
Text File  |  1996-09-03  |  3.3 KB  |  108 lines

  1. ; This is test of many of the features of the Installer
  2. ; Prints out debugging info if run from CLI
  3.  
  4. (set #installdir
  5.    (askdir
  6.       (help "Choose where the program files should go.")
  7.       (prompt "Where should I install Filter?  (A directory will be created)")
  8.       (default "AmiTCP:")
  9.       (newpath)
  10.    )
  11. )
  12.  
  13. (set #installdir (tackon #installdir "Filter"))
  14.  
  15. (makedir #installdir
  16.    (prompt "Making directory.")
  17.    (help @makedir-help)
  18. )
  19.  
  20. (set @default-dest #installdir)
  21.  
  22. (copyfiles
  23.    (prompt "Copying the proper version for your CPU.")
  24.    (help @copyfiles-help)
  25.    (if (patmatch "68000|68010" (database "cpu")) (source "Filter.000") (source "Filter.020"))
  26.    (newname "Filter")
  27.    (dest #installdir)
  28.    (files)
  29.    (confirm)
  30.    (infos)
  31. )
  32.  
  33. (copyfiles
  34.    (prompt "Copying the support files.")
  35.    (help @copyfiles-help)
  36.    (choices "Docs/Filter.guide" "Docs/Filter.readme" "Prefs/.filterrc" "Prefs/FilterPrefs")
  37.    (source "")
  38.    (dest #installdir)
  39.    (files)
  40.    (confirm)
  41.    (infos)
  42. )
  43.  
  44. (set #configfile
  45.    (askfile
  46.       (help "Pick your config file to be added to the icon tooltype.  If Filter is run without this parameter, it will look in the current directory, your HOME: directory, a uulib: assign, and other places.  It tries real hard.")
  47.       (prompt "Select your desired config file.")
  48.       (default (tackon #installdir ".filterrc"))
  49.    )
  50. )
  51.  
  52. (set #inbox
  53.    (askfile
  54.       (help "Your selected incoming mailbox file will be added to the icon tooltype.  This is the file Filter watches for changes and expects to find incoming mail in.")
  55.       (prompt "Select your incoming mailbox file.")
  56.       (default "UUMail:")
  57.    )
  58. )
  59.  
  60. (set #default
  61.    (askfile
  62.       (help "Your selected default mailbox file will be added to the icon tooltype.  This is where email that doesn't match any patterns will be placed.")
  63.       (prompt "Select your default mailbox file.")
  64.       (default "HOME:Mail")
  65.    )
  66. )
  67.  
  68. (set #defaultdir
  69.    (askdir
  70.       (help "Pick your default mailbox diretcory to be added to the icon tooltype.")
  71.       (prompt "Select your default mailbox directory.")
  72.       (default "HOME:Mail")
  73.    )
  74. )
  75.  
  76. (set #once
  77.    (askbool
  78.       (prompt "Do you want Filter to run in the background?")
  79.       (help "If you select Background, Filter will use the AmigaDOS notify function to wait for changes to the default mailbox file, and activate whenever the file is changed.  Control-C will cause it to exit.  If you select Once, you will have to run filter manually whenever you want to filter your mailbox.")
  80.       (default 1)
  81.       (choices "Background" "Once")
  82.    )
  83. )
  84.  
  85. (set #delay
  86.    (askstring
  87.       (prompt "How long should Filter wait after your inbox is first changed? (see help)")
  88.       (help "Filter will try to avoid conflicts, but it's best to set this to a reasonable value anyway.  Especially when transmission times are long.  3 is usually ok for an ethernet connection, and 10-30 for a modem connection.")
  89.       (default "30")
  90.    )
  91. )
  92.  
  93. (tooltype 
  94.    (prompt "Setting icon tooltypes to refer to your selections.")
  95.    (help "Setting tooltype parameters")
  96.    (settooltype "CONFIG" #configfile)
  97.    (settooltype "INBOX" #inbox)
  98.    (settooltype "DEFAULT" #default)
  99.    (settooltype "DEFAULTDIR" #defaultdir)
  100.    (settooltype "DELAY" #delay)
  101.    (if #once (settooltype "ONCE" "FALSE") (settooltype "ONCE" "TRUE"))
  102.    (dest (tackon #installdir "Filter"))
  103.    (noposition)
  104.    (confirm)
  105. )
  106.  
  107.  
  108.